package com.adcc.soundalarm.entity;

import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;

/**
 * Created by ZHANG on 2017/3/31.
 */
public class LogEntity {

    private final SimpleStringProperty level;
    private final SimpleStringProperty name;
    private final SimpleStringProperty log;
    private final SimpleStringProperty createTime;
    private final SimpleObjectProperty img;

    public LogEntity(String level, String name, String log,String createTime) {
        this.level = new SimpleStringProperty(level);
        this.name = new SimpleStringProperty(name);
        this.log = new SimpleStringProperty(log);
        this.createTime = new SimpleStringProperty(createTime);
        this.img = new SimpleObjectProperty();
    }

    public String getLevel() {
        return level.get();
    }

    public SimpleStringProperty levelProperty() {
        return level;
    }

    public void setLevel(String level) {
        this.level.set(level);
    }

    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    public void setName(String name) {
        this.name.set(name);
    }

    public String getLog() {
        return log.get();
    }

    public SimpleStringProperty logProperty() {
        return log;
    }

    public void setLog(String log) {
        this.log.set(log);
    }

    public String getCreateTime() {
        return createTime.get();
    }

    public SimpleStringProperty createTimeProperty() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime.set(createTime);
    }

    public Object getImg() {
        return img.get();
    }

    public SimpleObjectProperty imgProperty() {
        return img;
    }

    public void setImg(Object img) {
        this.img.set(img);
    }
}
